Java.perform(function () {
    var MiscUtil = Java.use("com.yoloho.libcore.util.MiscUtil");

    MiscUtil.isRooted.implementation = function () {
        return false;
    }

    MiscUtil.isSimulator.implementation = function (ctx) {
        return false;
    }

    var SystemManager = Java.use("com.mobile.auth.gatewayauth.manager.SystemManager");
    SystemManager.checkEnvSafe.implementation = function () {
        return null;
    }

    var AESUtil = Java.use("com.yoloho.libcore.util.AESUtil");

    AESUtil.encrypt.implementation = function (str, str2, str3) {
        console.log("这是str:", str)
        console.log("这是str2:", str2)
        console.log("这是str3:", str3)
        var res = this.encrypt(str, str2, str3)
        console.log("这是res:", res)
        return res;
    }
});

// frida -H 127.0.0.1:8877 -l  6_hook_password.js -f com.yoloho.dayima
// frida -U -f  com.yoloho.dayima -l  6_hook_password.js     这是spawn的方式启动